<template>
  <div>
    <button @click="$emit('input', value - 1)">-1</button>
    <span>数值:{{ value }}</span>
    <button @click="$emit('input', value + 1)">+1</button>
  </div>
</template>

<script>
export default {
  props: {
    value: Number,
  },
};
</script>

<style></style>
